import request from '@/utils/request'
export default class index {
    // 获取系统信息
    static getSystemInfo( params:any = {}) {
        return request({
            url: 'system/info',
            method: 'get',
            params
        })
    };
    // 获取用户钱包信息
    static getUserWallet( params:any = {}) {
        return request({
            url: 'common/getUserWallet',
            method: 'get',
            params
        })
    };
    // 获取系统信息
    static getcolor_pool( params:any = {}) {
        return request({
            url: 'color_gift/color_pool',
            method: 'get',
            params
        })
    };
    // 碎片兑换详情
    static gameInfo( params:any = {}) {
        return request({
            url: 'debris/gameInfo',
            method: 'get',
            params
        })
    };
    // 碎片兑换商品
    static debrisExchangeGoods( data:any = {}) {
        return request({
            url: 'debris/debrisExchangeGoods',
            method: 'post',
            data
        })
    };
    // 碎片兑换记录
    static debrisExchangeLog( params:any = {}) {
        return request({
            url: 'debris/debrisExchangeLog',
            method: 'get',
            params
        })
    };
}